package com.ecoolex.discount.sales.core.dao;

import com.ecoolex.discount.sales.core.mapper.PaymentOrderMapper;
import com.ecoolex.discount.sales.entity.PaymentOrder;
import com.ecoolex.discount.sales.pojo.QueryPaymentOrderDTO;
import com.ecoolex.framework.common.pojo.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentOrderDAO extends PaymentOrderMapper {
    long countByQuery(@Param("query") QueryPaymentOrderDTO query);

    List<PaymentOrder> queryByQuery(@Param("query") QueryPaymentOrderDTO query, @Param("sortsOrder") String sortsOrder, @Param("page") Page page);
}